﻿<!DOCTYPE html>
<html lang="en">
<head>
    <title>宾果高校</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <link rel="stylesheet" href="../css/bootstrap.min.css">
    <link rel="stylesheet" href="../css/style.css">
    <link rel="stylesheet" href="../css/sweetalert.min.css" />
    <script src="../js/jquery-1.12.2.min.js"></script>
    <script src="../js/common.js"></script>
    <script src="../js/login.js"></script>
    <script src="../js/layer.js"></script>
    <script src="../js/angular.min.js"></script>
    <script src="../js/Controller.js"></script>
    <script src="../js/sweetalert.min.js"></script>
</head>
<body>
    <div id="searchPage"></div>
    <div style="padding-top: 20px;" class="main">
        <div class="wrap">
            <div class="pay-box">
                <div class="panel panel-default">
                    <div class="panel-heading"></div>
                    <div ng-app="myApp" class="panel-body">
                        <table ng-controller="companyPayCtrl" class="table table-hover text-center">
                            <tr>
                                <td>合作确定时间</td>
                                <td>合作编号</td>
                                <td>合作成功社团类型</td>
                                <td>社团名称</td>
                                <td>社团地址</td>
                                <td>企业赞助书名称</td>
                                <td>社团活动书名称</td>
                                <td>企业方案</td>
                                <td>社团方案</td>
                                <td>金额</td>
                                <td>付款状态</td>
                                <td>付款</td>
                            </tr>
                            <tr ng-repeat="x in names">
                                <td>{{x.ProItem.SubmitTime| date:'yyyy-MM-dd'}}</td>
                                <td>{{x.ProItem.ProItem.ContractNO}}</td>
                                <td>{{x.ProItem.ChooseType | checkChooseType}}</td>
                                <td>{{x.ProItem.Association.Name}}</td>
                                <td>{{x.ProItem.Association.ProvinceName +'-' +x.ProItem.Association.CityName+'-'+ x.ProItem.Association.SchoolName}}</td>
                                <td><a href="#" tag="{{x.ProjectNO}}" onclick="Go(this, 'Books')">{{x.BookStatus=='3'?"":x.ProjectName}}</a></td>
                                <td><a href="#" tag="{{x.ProItem.ProjectNOSelf}}" onclick="Go(this, 'AssocBooks')">{{x.ProItem.ProjectSelfStatus=='3'? "":x.ProItem.ProjectSelf.ProjectName}}</a></td>
                                <td><a href="#" tag="{{x.ProjectNO}}" onclick="Go(this, 'Scheme')">{{x.BookStatus=='3'? x.ProjectName:""}}</a></td>
                                <td><a href="#" tag="{{x.ProItem.ProjectNOSelf}}" onclick="Go(this, 'AssocScheme')">{{x.ProItem.ProjectSelfStatus=='3'? x.ProItem.ProjectSelf.ProjectName:""}}</a></td>
                                <td>{{x.Money}}</td>
                                <td>{{x.MoneyStatus|MoneyStatusType}}</td>
                                <td>
                                    <button type="button" class="btn btn-default btn-xs">确定付款</button>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</body>
</html>
<script>

    $("#searchPage").load("header.html", function () {
        SetCss("Info");
    });

    function Go(obj, mode) {

        var id = $(obj).attr("tag");

        layer.ready(function () {

            layer.open({
                type: 2,
                title: '宾果高校',
                fix: false,
                shadeClose: true,
                maxmin: false,
                area: ['1000px', '500px'],
                content: 'Message.html?mode=' + mode + '&id=' + id,
                end: function () {

                }
            });
        });
    }
</script>